package com.market.plus.local.ocm.util;

import java.util.Iterator;
import java.util.Map;

import com.ocm.core.domain.PropertyDefinition;

public class LocalOCMUtil {
   public static Object getPropertyValue(String propertyName, Map<PropertyDefinition, Object> properties){
      for (Iterator<PropertyDefinition> it = properties.keySet().iterator(); it.hasNext();){
         PropertyDefinition propertyDefinition = it.next();
         if (propertyName.equalsIgnoreCase(propertyDefinition.getName())){
            return properties.get(propertyDefinition);
         }
      }
      return "";
   }
}
